package pl.kosmowska.ewelina.client.app.requestfactory;

import java.util.List;

import pl.kosmowska.ewelina.client.app.requestfactory.dto.StockDataProxy;
import pl.kosmowska.ewelina.server.dao.StockDataDAO;
import pl.kosmowska.ewelina.server.locators.EntityServiceLocator;

import com.google.web.bindery.requestfactory.shared.InstanceRequest;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;


@Service(value = StockDataDAO.class, locator = EntityServiceLocator.class)
public interface StockDataRequest extends RequestContext {

	  Request<List<StockDataProxy>> findStockDataByUser();
	  
	  Request< StockDataProxy> persist(StockDataProxy stockDataProxy);
	  
	  Request<Boolean> deleteById(String id);
	  
	  Request<List<String>> getStockNames();
  
}
